package com.example.hospitalapp;

import java.io.Serializable;

public class Prescription implements Serializable {

    private int prescriptionId;
    private int patientId;
    private int doctorId;
    private String prescriptionDate;
    private String medications;  // 药品信息，格式: "{药品ID,数量},{药品ID,数量}"
    private String status;
    private int medicalrecordId;

    // Getter and Setter methods

    public int getPrescriptionId() {
        return prescriptionId;
    }

    public void setPrescriptionId(int prescriptionId) {
        this.prescriptionId = prescriptionId;
    }

    public int getPatientId() {
        return patientId;
    }

    public void setPatientId(int patientId) {
        this.patientId = patientId;
    }

    public int getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(int doctorId) {
        this.doctorId = doctorId;
    }

    public String getPrescriptionDate() {
        return prescriptionDate;
    }

    public void setPrescriptionDate(String prescriptionDate) {
        this.prescriptionDate = prescriptionDate;
    }

    public String getMedications() {
        return medications;
    }

    public void setMedications(String medications) {
        this.medications = medications;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getMedicalrecordId() {
        return medicalrecordId;
    }

    public void setMedicalrecordId(int medicalrecordId) {
        this.medicalrecordId = medicalrecordId;
    }
}
